using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;

public class EndSceneData : MonoBehaviour
{
    public TextAsset data;
    public TMP_Text scoreText;
    public TMP_Text combleText;
    private GamemodeData _gamemodeData;


    string dataAll;
    string[] datastr;

    void Start()
    {
        //dataAll = data.text;
        //datastr = dataAll.Split(",");

        //scoreText.text = datastr[0];
        //combleText.text = datastr[1];
        _gamemodeData = GameObject.FindGameObjectWithTag("Data").GetComponent<GamemodeData>();
        scoreText.text = _gamemodeData.Score.ToString();
        combleText.text = _gamemodeData.Comble.ToString();
    }

    void Update()
    {
        
    }
}
